<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>系统提示更新</title>
    <link rel="stylesheet" href="../assets/plugin/versionNotice/css/versionTip.css"/>
    <style type="text/css">
        .versionContainer {
            height: 100%;
        }

    </style>
</head>
<body>
<div class="versionContainer"></div>
<script type="text/javascript" src="../assets/js/jquery.js"></script>
<script type="text/javascript" src="../assets/plugin/versionNotice/js/versionTip.js"></script>
<script type="text/javascript">
    var getNoticeParams = function () {
        var search = window.location.search.substr(1);
        var arr = search.split("=");
        return arr;
    };
    var requestUrl = function () {
        var url = "";
        if (getNoticeParams()[1] == "customer") {
            url = '../assets/js/versionInfoData.js';
        } else {
            url = '../assets/js/versionInfoSupplier.js';
        }
        return url;
    }
    $(document).ready(function () {
        $(".versionContainer").versionTip({
                                              /*url: '../assets/js/versionInfoData.js',*/
                                              url: requestUrl(),
                                              type: 'get',
                                              dataType: 'json'
                                              /*sidebarBgColor: '#abcdef'*/
                                          });
    });
</script>
</body>
</html>